home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
buttons
/
tkbar
/
tkabt.frm
< prev
next >
Wrap
Text File
|
1993-12-06
|
5KB
|
190 lines
VERSION 2.00
Begin Form frmAbout
BackColor = &H00808080&
BorderStyle = 1 'Fixed Single
Caption = "About"
ClientHeight = 2685
ClientLeft = 1140
ClientTop = 1620
ClientWidth = 3975
Height = 3120
Left = 1065
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2685
ScaleWidth = 3975
Top = 1260
Width = 4125
Begin Timer Timer1
Interval = 150
Left = 2280
Top = 3120
End
Begin PictureClip PicClip1
Cols = 4
Location = "1920,480,2940,240"
Picture = TKABT.FRX:0000
End
Begin PictureBox picInfo
BackColor = &H00C0C0C0&
Height = 990
Left = 150
ScaleHeight = 960
ScaleWidth = 3660
TabIndex = 0
Top = 825
Width = 3690
Begin Label lblLine2
AutoSize = -1 'True
BackColor = &H00C0C0C0&
Caption = "Light at the End of the Tunnel Software"
ForeColor = &H00FF0000&
Height = 195
Left = 150
TabIndex = 1
Top = 300
Width = 3390
End
Begin Label lblLine3
AutoSize = -1 'True
BackColor = &H00C0C0C0&
Caption = "by Tim Koffley [70334,16]"
ForeColor = &H00000000&
Height = 195
Left = 750
TabIndex = 2
Top = 675
Width = 2190
End
Begin Label lblLine1
AutoSize = -1 'True
BackColor = &H00C0C0C0&
Caption = "Another Button Bar 1.0a"
ForeColor = &H00000000&
Height = 195
Left = 780
TabIndex = 4
Top = 75
Width = 2070
End
End
Begin SSPanel pnlInfo
BackColor = &H00C0C0C0&
BevelInner = 1 'Inset
Font3D = 0 'None
Height = 2715
Left = 0
TabIndex = 3
Top = 0
Width = 3990
Begin CommandButton cmdOK
BackColor = &H00000000&
Caption = "OK"
Default = -1 'True
Height = 465
Left = 1125
TabIndex = 5
Top = 2025
Width = 1440
End
Begin PictureBox picIcon
AutoSize = -1 'True
ClipControls = 0 'False
Height = 510
Left = 1575
ScaleHeight = 480
ScaleWidth = 480
TabIndex = 6
Top = 225
Width = 510
End
End
End
Option Explicit
Dim Shared sLeft1%, sLeft2%, sLeft3%
Dim Shared sCurrPic As Integer
Sub cmdOk_Click ()
Unload Me
End Sub
Sub Form_Activate ()
Dim i%
'
' i tried hooking the scrolling into a timer but
' the effect was jerky animation so i just left it
' as is with the scroll speed depending on machine
' speed
'
'scroll the lines onto the screen
Timer1.Enabled = False
Refresh
For i = lblLine1.Left To sLeft1 Step 30
lblLine1.Left = i
Next
For i = lblLine2.Left To sLeft2 Step -30
lblLine2.Left = i
Next
For i = lblLine3.Left To sLeft3 Step 30
lblLine3.Left = i
Next
Timer1.Enabled = True
End Sub
Sub Form_Load ()
Dim Middle%
picInfo.BorderStyle = 0
CenterForm Me
'fit panel to form
pnlInfo.Top = 0
pnlInfo.Left = 0
pnlInfo.Width = frmAbout.ScaleWidth
pnlInfo.Height = frmAbout.ScaleHeight
'center form controls
Middle = (frmAbout.ScaleWidth / 2)
picIcon.Left = Middle - (picIcon.Width) / 2
picInfo.Left = Middle - (picInfo.Width) / 2
cmdOK.Left = Middle - (cmdOK.Width) / 2
'save old line positions
sLeft1 = lblLine1.Left
sLeft2 = lblLine2.Left
sLeft3 = lblLine3.Left
'move them off screen
lblLine1.Left = -lblLine1.Width - 1000
lblLine2.Left = lblLine2.Width + 1000
lblLine3.Left = -lblLine3.Width - 1000
picIcon.Picture = PicClip1.GraphicCell(0)
sCurrPic = 0
End Sub
Sub Timer1_Timer ()
Select Case sCurrPic
Case 0
picIcon.Picture = PicClip1.GraphicCell(1)
sCurrPic = 1
Case 1
picIcon.Picture = PicClip1.GraphicCell(2)
sCurrPic = 2
Case 2
picIcon.Picture = PicClip1.GraphicCell(3)
sCurrPic = 3
Case 3
picIcon.Picture = PicClip1.GraphicCell(0)
sCurrPic = 0
End Select
End Sub